﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace OnlineCourse.Model.Entity
{
    public class Coupon
    {
        public Coupon() {
            CreatedDate = DateTime.Now;
            UpdatedDate = DateTime.Now;
        }
        public Guid Id { get; set; }
        /// <summary>
        /// 优惠券标题
        /// </summary>
        [MaxLength(150)]
        public string Title { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal Price { get; set; } 
        /// <summary>
        /// 券发行数量
        /// </summary>
        public int Number { get; set; }

        public DateTime CreatedDate { get; set; }
        public DateTime UpdatedDate { get; set; }
        /// <summary>
        /// 领券记录集合
        /// </summary>
        public ICollection<CouponsRecord> CouponsRecords { get; set; }
    }
}
